package org.example.cdpcrpbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.example.cdpcrpbackend.controller.dto.DepStu1;
import org.example.cdpcrpbackend.controller.dto.Department1;
import org.example.cdpcrpbackend.domain.Department;
import org.example.cdpcrpbackend.domain.Student;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {
    Student login(@Param("username") String username, @Param("password") String password);

    List<Department1>  listByCondition(@Param("key") String key);

    Department1 getDepartmentInfoById(@Param("id") String id);

    List<DepStu1> depStuListByCondition(@Param("key") String key, @Param("depId") String depId);
}
